<?
$playerurl=(isset($playerurl))?$playerurl:'videoplayer';
$width=(isset($width))?$width:'800px';
$height=(isset($height))?$height:'100%';
$flashvars=(isset($flashvars))?$flashvars:'';

?>

<script language="javascript">
	if (AC_FL_RunContent == 0) {
		alert("Diese Seite erfordert die Datei \"AC_RunActiveContent.js\".");
	} else {
		AC_FL_RunContent(
			'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
			'FlashVars', '<?= $flashvars?>',
			'width', '<?= $width ?>)',
			'height', '<?= $height ?>',
			'src', '<?= url::base().'media/flash/'.$playerurl ?>',
			'quality', 'high',
			'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
			'align', 'top',
			'play', 'true',
			'loop', 'true',
			'scale', 'noscale',
			'wmode', 'transparent',
			'devicefont', 'false',
			'id', 'videoplayer',
			'bgcolor', '#ffffff',
			'name', 'videoplayer',
			'menu', 'false',
			'allowFullScreen', 'true',
			'allowScriptAccess','sameDomain',
			'movie', '<?= url::base().'media/flash/'.$playerurl ?>',
			'salign', 'lt'
			); //end AC code
	}
</script>
<noscript>
	<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="800px" height="100%" id="videoplayer" align="middle">
	<param name="allowScriptAccess" value="sameDomain" />
	<param name="allowFullScreen" value="false" />
	<param name="movie" value="videoplayer.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />	<embed src="videoplayer.swf" quality="high" bgcolor="#ffffff" width="550" height="400" name="videoplayer" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
	</object>
</noscript>